<?php
/**
 * <https://y.st./>
 * Copyright © 2017 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => 'Dental pains',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<img src="/img/CC_BY-SA_4.0/y.st./weblog/2017/10/07.jpg" alt="Pink flowers with white accents" class="framed-centred-image" width="800" height="480"/>
<section id="general">
	<h2>General news</h2>
	<p>
		One of my teeth was hurting really badly last night.
		It took me no less than four hours to get to sleep, and that only takes into account the last time I pulled out my mobile to check the time.
		For most of the night, I found I was able to kill the pain by holding water in my mouth on my tooth, but I couldn&apos;t really sleep that way.
		I kept swallowing the water once the pain&apos;d been gone a while, but the pain would soon come back.
		With all the water I ended up ingesting, I had to go to the restroom three times, and getting out of bed certainly didn&apos;t help with getting to sleep.
		Not only did it involve moving my body, it also made me cold until I could lay under the blankets long enough to warm back up.
		Thrice, I ended up nearly falling asleep with the water still on my tooth.
		The first two times, I dribbled it out of my mouth as I drifted off, waking me back up.
		The third time, I nearly choked on the water, so I mostly gave up trying to keep the pain away at all.
		It was never my intention to sleep with water in my mouth or anything, but I was so tired I&apos;d start drifting off before I&apos;d finished with the water and swallowed it.
		To add to the mess, I had a closing shift last night at work and a morning shift today, so my lack of sleep really wasn&apos;t welcome.
	</p>
	<p>
		At work, I was given a tip about the head manager&apos;s attitude about a certain part of our new computerised system.
		Apparently, they said we are free to (and encouraged to) break protocol in a certain way given a certain situation.
		At first, I wasn&apos;t going to do it, but then I realised I was acting obsessive-compulsive again.
		The system&apos;s screwy and it&apos;s not set up to work efficiently in the real-world situation of the restaurant.
		No one even wants the system there; we were required to install it by corporate.
		If the head manager wants to make our lives easier by letting us skip some of the nonsense, why shouldn&apos;t i get on board with that?
	</p>
	<p>
		I&apos;ve once more come to my senses about my sexuality.
		I&apos;m very not bi.
		I might have some bisexual thoughts and feelings sometimes, but my gayness is too strong for me to realistically hope to be anything but homosexual.
		At this point, I&apos;m fully aware and accepting of the fact that I don&apos;t owe bisexuality to anyone.
		I don&apos;t need to try to be bi to try to be an acceptable human being.
		The main reason I even hope to be bi is probably the fact that I don&apos;t feel my chances of finding love at all are that great.
		If I have a life partner, I need them to be on my side.
		I need them to have at least several of the morals that I do, including all the key ones.
		Ignoring the qualities a partner can&apos;t control about themself, I, for my own self-preservation, would need them to have several rare qualities in their behaviour, beliefs, and state of mind.
		If I have to give in on any key ethical criteria, I&apos;m better off alone.
		This world sucks, and I don&apos;t need to be a part of a partnership in which I&apos;m stuck sucking like the masses; in which I have to hate myself.
		But to add to who I&apos;d need them to be as a person, my animal instincts are demanding that they be the same sex as I am; demanding that they have the same brain anomaly I have, the one that causes homosexuality.
		It cuts down my chances of finding a partner I connect with even further, and to what end?
		What do I <strong>*gain*</strong> by restricting my partner choice to those that are gay?
		Nothing.
		Absolutely nothing.
		I think it could be possible for me to pair with someone of the opposite sex, though I wouldn&apos;t be as happy as with someone of the same sex.
		I think a more interesting question to answer, if not even just a more useful one, is if I&apos;d be happier with someone of the opposite sex or happier alone.
		If I&apos;d be happier alone, my path is clear: go gay or go home.
		If I&apos;d be happier with a companion, I need to weigh the costs of settling with those of not.
		If I settle for an opposite-sex partner, I have a partner, but I lose my chance with a partner that&apos;d make me happier.
		Then again, I likely wouldn&apos;t find the partner that makes me happier anyway.
		Either way, it&apos;s a gamble.
		I could get lucky though and find gay love first.
		In that case, no decisions need be made on that front.
	</p>
	<p>
		I&apos;m considering cancelling my <code>minequest</code> mod.
		Alone (or rather, paired only with <code>minestats</code>), <code>minequest</code> adds an interesting $a[RPG]-like element to the game.
		However, it&apos;s not the only mod I want to work on.
		Several mods I&apos;d like to make involve adding nodes to the game that are constructed from mineral and crop items.
		For example, I want to build a shop mod, and the shop nodes will require one iron, three wheat, and five wood to craft.
		With <code>minequest</code> breathing down my neck, I&apos;d need to set up bonuses for nodes such as this.
		But since my mods are likely the only ones that&apos;d use the <code>minequest</code> $a[API], it&apos;d make my mods a very gimmicky thing.
		No, I don&apos;t like that very much.
		Instead, maybe I should just scrap <code>minequest</code> altogether.
		If I do that though, I&apos;d like my other mods to hook into <code>minestats</code> directly in some way though.
		I&apos;m not sure exactly how to pull it off, but I&apos;d like the stats gained in <code>minestats</code> to be good for <strong>*something*</strong> besides showing off.
		The main two mods I want to build though are for protecting one&apos;s creations and for bartering with other players without both parties needing to be present at the same time.
		Neither seems like something you&apos;d want changing in capabilities based on mining/farming history.
	</p>
</section>
<section id="university">
	<h2>University life</h2>
	<p>
		My goal for today was to complete the <span title="Web Programming 1">CS 2205</span> reading material and write up my initial discussion post based on it.
		However, I quickly found that the reading material and discussion topic had nothing in common.
		I&apos;ve therefore put the reading material aside for the time being and done research elsewhere for the discussion assignment.
	</p>
	<blockquote>
		<p>
			When I was looking for the definition of a content-management system, I was quite surprised to find I use one myself!
			I use a custom set of scripts I develop myself, and they&apos;re very specific to my website; that is to say, they&apos;re not general-purpose scripts able to service other websites.
			However, they do keep my website looking uniform, they keep me from having to write entire pages from scratch, and they keep the index pages up-to-date with the directories they represent.
			However, custom content-management systems aren&apos;t very useful to discuss.
			More interesting are content-management systems that one can use to build their own Web presence with.
		</p>
		<p>
			A content-management system is software used to create and manage digital content (Rouse &amp; Churchville, 2016).
			The term &quot;create&quot; is a bit misleading though.
			What a content-management system often does is help you put the content you create yourself into a format the content-management system knows how to work with.
			It&apos;s not going to help you come up with ideas, nor is it going to actually create anything on your behalf; that&apos;s still all on you.
			Content-management systems are great for people that need to get something up quickly, need to have something that works with little effort/maintenance, or have little experience.
			When you roll your own software setup, you&apos;ve got a lot of flexibility, but when you use an out-of-the-box $a[CMS], you&apos;re stuck with the options and limitations the developers decided to provide you.
			The benefit of using a $a[CMS] though is that you don&apos;t need to know how to actually publish content yourself.
			You don&apos;t need to know $a[XHTML], $a[CSS], et cetera, and less time is spent in writing pages as long as you don&apos;t need advanced features on a given page.
		</p>
		<p>
			I haven&apos;t myself worked with a $a[CMS] aside from my own software stack, unless you count Git hosts.
			Git is used for version control, but it&apos;s a form of content-management too, especially when it&apos;s paired with Web-facing software such as Gogs (which is used by Git hosts such as NotABug.org).
			Normally though, Git host software stacks aren&apos;t going to help you publish a website though, and this is a course on Web development, so let&apos;s focus on content-management systems for running websites.
		</p>
		<p>
			Probably the content-management system I hear about most often is <a href="https://wordpress.org/">Wordpress</a>.
			Wordpress is typically used for publishing weblogs, but I&apos;ve seen non-journal-related websites use it too.
			There countless <a href="https://wordpress.org/themes/">themes</a> developed for use with Wordpress, many of which are available on the Wordpress home website itself, though I&apos;ve seen other websites offering Wordpress themes as well.
			It also has lots of <a href="https://wordpress.org/plugins/">plugins</a>, used to customise how it functions.
			That&apos;s one of the best features of Wordpress: you can customise the functionality of it with plugins, allowing you to build all sorts of features into your website.
			If you can&apos;t find an appropriate plugin, you could build one yourself or hire someone to do it for you.
		</p>
		<p>
			<a href="https://www.drupal.org/">Drupal</a> is another $a[CMS] in wide use, though I don&apos;t hear about it as much as Wordpress.
			Like Wordpress, Drupal can be extended with plugins, though in the Drupal ecosystem, they&apos;re known instead as <a href="https://www.drupal.org/project/project_module">modules</a>, and it has its own theming system as well.
		</p>
		<p>
			A third option would be <a href="https://www.joomla.org/">Joomla</a>.
			Again, Joomla is extendable with plugins, known in the Joomla world as extensions, so you can download or develop added capabilities for a Joomla-based website as you find you need more features.
			Like Wordpress and Drupal, Joomla has many themes that can be downloaded and installed, and you can even build your own.
		</p>
		<p>
			If you&apos;re looking to use a $a[CMS], I&apos;d recommend trying out several before committing to one.
			They have similar features because they&apos;re built for similar purposes, but if there weren&apos;t differences between the $a[CMS]s, there wouldn&apos;t be a need for so many.
			When it comes to plugins too, you&apos;ll want to make sure the features you want are available by default or via plugin before making your decision.
		</p>
		<div class="APA_references">
			<h3>References:</h3>
			<p>
				Rouse, M., &amp; Churchville, F. (2016, June). What is content management system (CMS)? - Definition from WhatIs.com. Retrieved from <a href="http://searchcontentmanagement.techtarget.com/definition/content-management-system-CMS"><code>http://searchcontentmanagement.techtarget.com/definition/content-management-system-CMS</code></a>
			</p>
		</div>
	</blockquote>
</section>
END
);
